package com.cn.main.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by chenyuncong on 2018/5/21.
 */
@Component
@ConfigurationProperties(prefix = "config")
public class MyConfigMap {
    private Map<String,String> my=new HashMap<>();
    public Map<String, String> getMy() {
        return my;
    }
    public void setMy(Map<String, String> my) {
        this.my = my;
    }
}
